public class rotateString {
    public boolean rotateString(String s, String goal) {
        if(s.length() != goal.length()) return false;
        //直接拷贝两个s，在直接contains-goal,来判定
        String s1 = s + s;
        return s1.contains(goal);
    }
}
